﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kokomo.Mirror.CliMetadata;
using System.ComponentModel;

namespace Kokomo.Mirror.PeFormat
{
	public class Cor20MetadataHeaders
	{
		//private Cor20MetadataRootHeader _rootHeader;
		//[Browsable(false)]
		//public Cor20MetadataRootHeader RootHeader
		//{
		//    get { return this._rootHeader; }
		//    private set
		//    {
		//        this._rootHeader = value;
		//    }
		//}

		//[DisplayName("Metadata stream offset")]
		//[TypeConverter(typeof(HexConverter))]
		//public int MetadataStreamOffset { get { return this.RootOffset + this.RootHeader.GetStreamHeader(Cor20StreamHdr.MetadataStreamName).Offset; } }

		//[SerializedOffset("MetadataStreamOffset")]
		//[Browsable(false)]
		//public Cor20MetadataStreamHeader StreamHeader { get; private set; }

		//private uint GetRecordCount(MetadataTableNumber tableNumber)
		//{
		//    int moduleTableIndex = Array.IndexOf(this.StreamHeader.TableNumbers, tableNumber);
		//    if (moduleTableIndex < 0) return 0;

		//    return this.StreamHeader.Rows[moduleTableIndex];
		//}
	}
}
